<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/meyer-reset/2.0/reset.min.css">
    <title>Document</title>
    <style>
      body{
        height:2000px;
      }
      #container{
        width:200px;
        height:200px;
        background-color: lightcoral;
        display: flex;
        justify-content: center;
        align-items: center;
        position: absolute;
        left:0;
        top:300px;
      }

    </style>
</head>
<body>
   <div id="container"></div>
    <script>
        function roundToPlace(num,roundingPlace=100){
            return Math.round(num/roundingPlace)*roundingPlace;
        }
        const container = document.getElementById('container');
        container.addEventListener('click',(event)=>{
           console.log('offsetX',roundToPlace(event.offsetX));
           console.log('offsetY',roundToPlace(event.offsetY));
           console.log('clientX',roundToPlace(event.clientX));
           console.log('clientY',roundToPlace(event.clientY));
           console.log('pageX',roundToPlace(event.pageX));
           console.log('pageY',roundToPlace(event.pageY));
           console.log('screenX',roundToPlace(event.screenX,10));
           console.log('screenY',roundToPlace(event.screenY,10));
        });
        setTimeout(()=>{
            document.documentElement.scrollTop = 100;
        },1000);
    </script>
</body>
</html>